@extends('home.pc.public.public')

@section('main')
    <div class="miya_info">
        <div class="miya_info_left">
            <div class="miya_template_left_box">
                <h3 class="miya_template_left_box_title">{{ $chunk['name'] }}</h3>
                <ul class="miya_template_left_box_ul">
                    @foreach($sorts[$chunk['path']] as $value)
                        <li><a href="{{ route('sort',[$chunk['path'],$value['id']]) }}">{{ $value['name'] }}</a></li>
                    @endforeach
                </ul>
            </div>
            @include('home.pc.public.left')
        </div>
        <div class="miya_info_right frame_box">
            <h3 class="miya_info_right_new_title">{{ $info['name'] }}</h3>
            <p class="miya_info_right_date">发布时间 : {{ $info['time'] }} &nbsp;&nbsp;&nbsp;&nbsp; 访问量
                : {{ $info['page_view'] }}次</p>
            @include('home.pc.public.frame')
            <div class="miya_info_right_new_box">
                <div class="miya_info_right_new_descibe">{!! $info['describe'] !!}</div>
            </div>
            <ul class="miya_info_right_page_link">
                @if(!empty($prev))
                    <li>上一条 : <a href="{{ route('info',['new',$prev['id']]) }}">{{ $prev['name'] }}</a></li>
                @endif
                @if(!empty($next))
                    <li>下一条 : <a href="{{ route('info',['new',$next['id']]) }}">{{ $next['name'] }}</a></li>
                @endif
            </ul>
            <div class="miya_info_right_info_link">
                <div class="miya_info_right_info_link_title">相关产品</div>
                <ul class="miya_info_right_info_link_ul">
                    @foreach($links as $value)
                        <li class="miya_info_right_info_link_li">
                            <a href="{{ route('info',['product',$value['id']]) }}">
                                <div class="miya_info_right_info_link_li_img">
                                    <img src="{{ $value['image'] }}" alt="">
                                </div>
                                <h4>{{ $value['name'] }}</h4>
                            </a>
                        </li>
                    @endforeach
                </ul>
                <div class="clearfix"></div>
            </div>
            <div class="miya_info_right_info_new">
                <div class="miya_info_right_info_new_title">相关新闻</div>
                <ul class="miya_info_right_info_new_ul">
                    @foreach($linkNews as $value)
                        <li>
                            <a href="{{ route('info',['new',$value['id']]) }}">
                                {{ $value['name'] }}
                            </a>
                            <span>{{ $value['time'] }}</span>
                        </li>
                    @endforeach
                </ul>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
@endsection